package com.sino.struts2;

import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.sino.business.IStaticDataService;

public class SelectZlTypeAction extends ActionSupport{
	private IStaticDataService staticDateService;//基础数据
	private List zlTypeList;//专利类别列表
	private List qxkwList;//区县科委
	private String bs;
	private String zlid;
	private String qxkwlb;
	//-------------------------------显示专利类别选择页面
	public String viewZlTypeList(){
		if(bs==null){
			bs = "A";
		}else if(bs.equals("A")){
			bs = "B";
		}else if(bs.equals("B")){
			bs = "C";
		}
		this.setZlTypeList(this.getStaticDateService().findZlTypeList(this.getZlid()));
		return this.SUCCESS;
	}
	//-------------------------------显示区县科委选择页面
	public String viewQxkwList(){
		if(bs==null){
			bs = "A";
		}else if(bs.equals("A")){
			bs = "B";
		}
		
		this.setQxkwList(this.getStaticDateService().findQxkwList(this.qxkwlb));
		return this.SUCCESS;
	}
	//-------------------------------显示区县科委选择页面
	public String viewQxkwAdminList(){
		if(bs==null){
			bs = "A";
		}else if(bs.equals("A")){
			bs = "B";
		}
		
		this.setQxkwList(this.getStaticDateService().findQxkwList(this.qxkwlb));
		return this.SUCCESS;
	}
	//--------------------------------------------------接口
	public IStaticDataService getStaticDateService() {
		return staticDateService;
	}
	public void setStaticDateService(IStaticDataService staticDateService) {
		this.staticDateService = staticDateService;
	}
	public List getZlTypeList() {
		return zlTypeList;
	}
	public void setZlTypeList(List zlTypeList) {
		this.zlTypeList = zlTypeList;
	}
	public String getQxkwlb() {
		return qxkwlb;
	}
	public void setQxkwlb(String qxkwlb) {
		this.qxkwlb = qxkwlb;
	}
	public String getBs() {
		return bs;
	}
	public void setBs(String bs) {
		this.bs = bs;
	}
	public String getZlid() {
		return zlid;
	}
	public void setZlid(String zlid) {
		this.zlid = zlid;
	}
	public List getQxkwList() {
		return qxkwList;
	}
	public void setQxkwList(List qxkwList) {
		this.qxkwList = qxkwList;
	}
	
}
